wayland: Compare serial numbers correctly to avoid overflow problems
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:08:13 +0000 (23:08 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 24 Aug 2013 06:15:53 +0000 (23:15 -0700)
commit771dbe059248a6f263ec72aa41f1f54f21d94208
tree462596c5ecf99a9449983eb260284330c81891d8
parent384a4e6ddbdffcf83b32d1a4eaa41a675a1f791e
wayland: Compare serial numbers correctly to avoid overflow problems

We have to look at the difference between two numbers, which will always
be well-defined and give the right result, even in case of integer overflow.
gdk/wayland/gdkdisplay-wayland.c